package com.mazaiting.demo;

import com.dtp.core.spring.EnableDynamicTp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Apollo 示例
 *
 * @author mazaiting
 * @create_time 2022/10/4 20:52
 */
@RefreshScope
// 启动动态线程池
@EnableDynamicTp
// 激活远程调用
@EnableFeignClients(basePackages = "com.mazaiting")
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = "com.mazaiting")
public class ApolloDemoApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(ApolloDemoApplication.class, args);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
